package com.ywdnf.gomoku.model.chess;

import lombok.Getter;
import lombok.Setter;

/**
 * 棋子模型
 *
 * @author lss
 * @date 2019-06-25, Tue
 */
@Getter
@Setter
public class Chessman {

  /**
   * 棋子坐标
   */
  private Point point;

  /**
   * 棋子当前状态
   */
  private ChessState state;


  /**
   * 谁放置的
   */
  private Player p;

  public Chessman(Point point, Player p) {
    this.point = point;
    this.state = ChessState.UNPLACED;
    this.p = p;
  }
}
